home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: July 30, 1997
- //<doc>
- //<name copyArray>
- //<owner "Alias|Wavefront Unsupported">
- //
- //<synopsis>
- // int copyArray(float $vSrc[], float $vDest[], int $numberToCopy)
- //
- //<description>
- // Copies a certain number of values from one float array to another
- //
- //<returns>
- // int : 1 if success
- //
- //<examples>
- // float $src[] = { 1.0, 2.0 };
- // float $dst[] = { 3.0, 4.0 };
- // copyArray( $src, $dst, 1 );
- // // Result : 1 //
- // print $dst;
- // <i>1.0</i>
- // <i>4.0</i>
- // copyArray( $src, $dst, 2 );
- // // Result : 1 //
- // print $dst;
- // <i>1.0</i>
- // <i>2.0</i>
- //
- //</doc>
- //
- global proc int copyArray( float $vSrc[], float $vDest[], int $numberToCopy )
- {
- int $i;
- for( $i = 0; $i < $numberToCopy; $i ++ )
- $vDest[$i] = $vSrc[$i];
- return 1;
- }
-
-